using Microsoft.CRM.ThirdParty.Extensions.ProjectCreator.Eventing;

namespace Microsoft.CRM.ThirdParty.Extensions.ProjectCreator.Services
{
    public class ProjectCreationService : IProjectCreationService
    {
        private readonly ProjectEventAggregator _aggregator;

        public ProjectCreationService()
        {
            _aggregator = new ProjectEventAggregator();
        }

        public void CreateProject(string project_name, string location)
        {
            Domain.ProjectCreator creator = new Domain.ProjectCreator(_aggregator);
            creator.CreatorProject(project_name, location);
        }
    }
}